package org.smog.core.exception;

import lombok.Data;
import org.smog.core.exception.enums.ExceptionLevel;

/**
 * 基础系统异常,cpu,磁盘,内存等等硬件异常
 *
 * @Description: Created by IntelliJ IDEA.
 * @project_name: smogTemp
 * @time: 2020-05-14 11:15
 * @email: 17685306043@163.com
 * @author: huangZhongYao
 */
@Data
public abstract class BaseSystemException extends BaseException {

    public BaseSystemException(String message) {
        super(message, 500, ExceptionLevel.SYSTEM.getValue());
    }

    public BaseSystemException(String message, int code) {
        super(message, code, ExceptionLevel.SYSTEM.getValue());
    }

    public BaseSystemException(String message, Throwable cause) {
        super(message, cause);
    }
}
